package com.qidian.zl.paper.dao;

import com.qidian.zl.paper.pojo.Paper;

import java.util.List;

public interface PaperDAO {
   public Long save(Paper paper);
   public Long update(Paper paper);
   //
   public List<Paper> query(int page, int size);
   //
   public int queryTotal();

   public List<Paper> queryPaper(Paper paper, String startTime, String endTime, int page, int size);
   public int queryTotal(Paper paper,String startTime,String endTime);
   public Paper queryById(Long paperId);
   public int  delte(Long paperId);
   public int  updateStatus(Long paperId,Integer status);

   void addSubCount(long paperId, int i);
}
